﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _20.Palindromes
{
    class Program
    {
      
        static void Main(string[] args)
        {
            string text = "ABBA is the best early 60's band. The exe o file can't be found. Lamal is a strange word.";
            text = text.ToLower();
            string[] words = text.Split(' ');
           
            foreach (string word in words)
            {
                bool symetric = true;
                int len = word.Length;
                for (int i = 0; i <( word.Length / 2); i++)
                {
                    if (word[i] != word[len - i - 1])
                    {
                        symetric = false;
                        break;
                    }

                }
                if (symetric && word.Length > 1)
                {
                    Console.WriteLine(word);
                }
            }

                
            
        }
    }
}
